package com.lagou.service.impl;

import com.lagou.service.MonitorService;
import org.apache.dubbo.config.annotation.Service;

@Service
public class MonitorServiceImpl implements MonitorService {

    @Override
    public void methodA() {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("methodA正在执行");
    }

    @Override
    public void methodB() {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("methodB正在执行");
    }

    @Override
    public void methodC() {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("methodC正在执行");
    }
}
